package com.geofitti.andoird;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MenuActivity extends Activity {
	
	
	public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.geofitti_menupage);
	        
	        Button takePicture = (Button) findViewById(R.id.btnCamera);
	        Button upload = (Button) findViewById(R.id.btnUpload);
	        Button viewProfile = (Button) findViewById(R.id.btnProfile);
	        Button viewEditProfile = (Button) findViewById(R.id.btnEditUserProfile);
			
			takePicture.setOnClickListener(new View.OnClickListener(){
	            public void onClick(View v) {
	            	Intent i = new Intent(getApplicationContext(), GeoFittiCamera.class);
	                startActivity(i);
				}
			});
			
			upload.setOnClickListener(new View.OnClickListener(){
	            public void onClick(View v) {
	                //Intent i = new Intent(getApplicationContext(), MapViews.class);
	                //startActivity(i);	            	
				}
			});
			
			viewProfile.setOnClickListener(new View.OnClickListener(){
	            public void onClick(View v) {
	                Intent i = new Intent(getApplicationContext(), ProfileActivity.class);
	                startActivity(i);
				}
			});
			
			viewEditProfile.setOnClickListener(new View.OnClickListener(){
	            public void onClick(View v) {
	                Intent i = new Intent(getApplicationContext(), EditProfileActivity.class);
	                startActivity(i);
				}
			});
	        
	    }
}

/* this goes in to luanch maps app
 * 					String geoUriString = getResources().getString(R.string.map_location);  
	            	Uri geoUri = Uri.parse(geoUriString);  
	            	Intent mapCall = new Intent(Intent.ACTION_VIEW, geoUri);  
	            	startActivity(mapCall);
 */
